// 导入axios实例
import httpRequest from "../axios";
/**
 * 教育经历
 */
//增加Form
interface Form {
    id:number;
    eeEra:string;
    eeSname:string;
    eeSeva:string;
    eeOve:string;
    eeStart:Date;
    eeEnd:Date;
    eeLinkid:number;
}
//查询全部
export function allGet() {
    return httpRequest({
        url: "/index3/get/eduExp",
        method: "get",
    });
}
//根据id查询单个
export function getOne(id) {
    return httpRequest({
        url: "/index3/get/eduExpOne/" + id,
        method: "get",
    });
}
//修改查询单条的内容
export function EditG(param: Form) {
    return httpRequest({
        url: "/index/post/editEduExp",
        method: "post",
        data: param,
    });
}
/**
 * 教育故事内容
 */
//修改Form
interface Form2 {
    id: number;
    eeLinkid:number;
    primTitle:string;
    primSeva:string;
    primSeva:string;
    primCon:string;
    primImg:string;
    primStart:Date;
    primEnd:Date;
}
interface Form22 {
    eeLinkid:number;
    primTitle:string;
    primSeva:string;
    primSeva:string;
    primCon:string;
    primImg:string;
    primStart:Date;
    primEnd:Date;
}
//查询全部
export function allGet2() {
    return httpRequest({
        url: "/index3/get/eduPrim",
        method: "get",
    });
}
//搜索查
export function Query2(str) {
    return httpRequest({
        url: "/queryPrim/"+str,
        method: "get",
    });
}
//根据id查询单个
export function getOne2(id) {
    return httpRequest({
        url: "/index3/get/eduPrimOne/" + id,
        method: "get",
    });
}
//增加一个
export function AddG2(param: Form22) {
    return httpRequest({
        url: "/index3/post/addPrim",
        method: "post",
        data: param,
    });
}
//删除一个
export function DeleteG2(id) {
    return httpRequest({
        url: "/index3/get/deletePrim/" + id,
        method: "get",
    });
}
//修改一个
export function EditG2(param: Form2) {
    return httpRequest({
        url: "/index3/post/editPrim",
        method: "post",
        data: param,
    });
}
